-- GENERATED SPELL FOR [Umbrafen Seer] --


function spell0_18079(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(31287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18079', 3500, 1)
end

function spell1_18079(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18079', 2000, 1)
end

function Sorts_18079(pUnit, Event)
local choix_sorts_18079 = math.random(0, 1)
if choix_sorts_18079 == 0 then
pUnit:RegisterEvent('spell0_18079', 1, 1)
end
if choix_sorts_18079 == 1 then
pUnit:RegisterEvent('spell1_18079', 1, 1)
end
end

function mob18079_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18079', math.random(1500, 3000), 1)
end

function mob18079_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18079_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18079_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18079, 1, 'mob18079_Action')
RegisterUnitEvent(18079, 2, 'mob18079_Leave')
RegisterUnitEvent(18079, 3, 'mob18079_Kill')
RegisterUnitEvent(18079, 4, 'mob18079_Die')
